package appapi.service;

import appapi.entity.mongo.MangoDevices;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.data.mongodb.repository.Query;
import java.util.List;
public interface DevicesRepository extends MongoRepository<MangoDevices, String> {
    @Query("{ 'DeviceImei' : { $regex: ?0, $options: 'i' } }")
    List<MangoDevices> findByDeviceImei(String DeviceImei);
    @Query("{ 'projectName' : { $regex: ?0, $options: 'i' } }")
    List<MangoDevices> findByProjectName(String projectName);

}
